package com.pengshun.config.oss;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author zhangning
 */
@Configuration
@ConfigurationProperties(prefix = "env.aliyun.oss")
@Setter
@Getter
@Component
public class OssConfig {
	//阿里云API的外网域名
	private String endpoint;
	private String endpointHost;
	private String privateBucketName;
	private String publicBucketName;
	private String publicCoreBucketName;
	private Long expireSeconds;
	private OssHost host;
	private String accessKeyId;
	private String accessKeySecret;
	private StsObjectKey objectKey;

}
